﻿using Server.Framework.Message;
using Server.Model;
using SuperSocket.SocketBase;

namespace Server.Framework.Socket
{
    /// <summary>
    /// Author: Leil
    /// Description: 通信session
    /// CreateTime: 2020/5/11 15:40:48
    /// </summary>
    public class ProtobufAppSession : AppSession<ProtobufAppSession, ProtobufRequestInfo>
    {
        public UserDao User { get; set; }

        /// <summary>
        /// 发送消息
        /// </summary>
        /// <param name="responseMessage">消息体</param>
        public void Send(ResponseBaseMessage responseMessage) {
            byte[] buffer = responseMessage.Encode();
            Send(buffer, 0, buffer.Length);
        }



    }
}
